function resp = MyGPrima( h )
    global BETA;
    global activationFunc;
    
    if activationFunc == 0
        %tanh
        resp = BETA*(1-(MyG(h)^2));
    elseif activationFunc == 1
        %exp
        resp = 2*BETA*MyG(h)*(1-MyG(h));
    end
end

